port = 9200
port = ENV['ELASTICSEARCH_PORT'] if ENV['ELASTICSEARCH_PORT']
ENV['ELASTICSEARCH_URL'] ||= "http://#{ENV['ELASTICSEARCH_HOST']}:#{port}" if ENV['ELASTICSEARCH_HOST']
